﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: FriendEntity.cs
// 修改时间：2020-9-8 10:40:03
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Friend 的实体类.
	/// </summary>
	[Table("Friend")]
	public partial class FriendEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// ID(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _userName = string.Empty;
		/// <summary>
		/// 用户名
		/// </summary>
		[Column("UserName",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String UserName
		{
			get {return _userName;}
			set {_userName = value;}
		}
		
		private System.String _friendName = string.Empty;
		/// <summary>
		/// 好友名称
		/// </summary>
		[Column("FriendName",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String FriendName
		{
			get {return _friendName;}
			set {_friendName = value;}
		}
		
		private DateTime? _addTime = null;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Column("AddTime",TypeName="datetime")]
		public DateTime? AddTime
		{
			get {return _addTime;}
			set {_addTime = value;}
		}
		
		private int? _groupID = 0;
		/// <summary>
		/// 好友分组ID
		/// </summary>
		[Column("GroupID",TypeName="int")]
		public int? GroupID
		{
			get {return _groupID;}
			set {_groupID = value;}
		}
		
		#endregion
	}
}
